package p12.p1216;

import java.util.Scanner;

public class p1216 {
    public static void main(String[] args) {
        //String a = "fdvdfvdfvdVUVIVIVKJBKbjbkbKJBJ87587888757GKHKGJ98768JGGJjghjg";
        int bigCount = 0;
        int smallCount = 0;
        int numCount = 0;
        System.out.println("in put:");
        Scanner scanner = new Scanner(System.in);
        String a = scanner.nextLine();

        for (int i = 0; i < a.length(); i++) {

            //System.out.println(a.length());
            System.out.println(a.charAt(i));
            if (a.charAt(i) >= '0' && a.charAt(i) <= '9') {
                numCount++;
            } else if (a.charAt(i) >= 'a' && a.charAt(i) <= 'z') {
                smallCount++;
            } else if (a.charAt(i) >= 'A' && a.charAt(i) <= 'Z') {
                bigCount++;
            }

        }
        System.out.println("numCount = " + numCount);
        System.out.println("smallCount = " + smallCount);
        System.out.println("bigCount = " + bigCount);
    }

}
